# def jc(n):
#     a= 1
#     for i in range(1,n+1):
#          a *= i
#     return a
#
# print(jc(5))

def jc(n):
    if n == 0 or n == 1:
        return 1
    else:
        return n * jc(n - 1)


print(jc(5))


